home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / lisp / wgdb-42.lha / wgdb-4.2 / gdb / vx-share / xdr_ptrace.h < prev    next >
C/C++ Source or Header  |  1992-09-11  |  1KB  |  69 lines

  1. /* xdr_ptrace.h - xdr header for remote ptrace structures */
  2.  
  3. /*
  4. modification history
  5. --------------------
  6. 01a,05jun90,llk  extracted from xdr_ptrace.h.
  7. */
  8.  
  9.  
  10. #include "xdr_regs.h"
  11. #include "reg.h"
  12.  
  13. /*
  14.  *  Counted byte structure used by READ/WRITE TEXT/DATA
  15.  */
  16. struct c_bytes {
  17.     u_int    len;
  18.     caddr_t    bytes;
  19. };
  20. typedef struct c_bytes C_bytes;
  21.  
  22. /*
  23.  * enum for discriminated union ptrace_info
  24.  */
  25. enum ptype {
  26.     NOINFO = 0,        /* no additional infomation    */
  27.     REGS = 1,        /* regs     (SETREGS)      */
  28.     FPREGS = 2,        /* fp_status     (SETFPREGS)    */
  29.     FPAREGS = 3,        /* fpa_regs    (SETFPAREGS)    */
  30.     DATA = 4,        /* c_bytes    (WRITETEXT/DATA)*/
  31. };
  32. typedef enum ptype ptype;
  33.  
  34. /*
  35.  * discrimnated union for passing additional data to be 
  36.  * written to the debugged process. With the exception of
  37.  * c_bytes, the structures are defined in <machine/reg.h>
  38.  */
  39. struct ptrace_info {
  40.     ptype    ttype;
  41.     caddr_t    more_data;    
  42. };
  43. typedef struct ptrace_info Ptrace_info;
  44.  
  45. /*
  46.  * structure passed to server on all remote ptrace calls
  47.  */
  48. struct rptrace {
  49.     int     pid;
  50.     int     data;
  51.     int     addr;    /* FIX! this really should be caddr_t or something */
  52.     Ptrace_info    info;
  53. };
  54. typedef struct rptrace Rptrace;
  55. /*
  56.  * structure returned by server on all remote ptrace calls
  57.  */
  58. struct ptrace_return {
  59.     int status;
  60.     int errno;
  61.     Ptrace_info    info;
  62. };
  63. typedef struct ptrace_return Ptrace_return;
  64.  
  65. bool_t xdr_c_bytes();
  66. bool_t xdr_ptrace_info();
  67. bool_t xdr_rptrace();
  68. bool_t xdr_ptrace_return();
  69.